import sys
from model import *
from util import *

if __name__ == "__main__":
    files = ['collections/seasons.xml', 'collections/blogs.xml', 'collections/wiki_math.xml', 'collections/wiki_tennis.xml', 'collections/wiki_mt.xml']
    for file in files:
        t = now()
        print "Building index..."
        index = Index(file)
        print "Index successfully built in "+str(now()-t)+' seconds.'